﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Luminji.ExamWeb.Core.Domain.Model
{
    public class Question 
    {
        public string QuestionCode { get; set; }
        public string QuestionAnalysis { get; set; }
        public object Parent { get; set; }
        public bool Multiple { get; set; }
        public bool ShowOrdered { get; set; }
        public string StandardAnswer { get; set; }
        public string StudentAnswer { get; set; }
        public string PTempId { get; set; }
        public int QuestionNo { get; set; }
        public string QuestionInfo { get; set; }
        
        //大题面编号,在同一题型下可能出现多个大题面
        public string QuestionFaceId { get; set; }
        //大题面对应索引号
        public int QuestionFaceOrder { get; set; }
        //大题面
        public string QuestionFace { get; set; }
        //标准分
        public double QuestionScore { get; set; }

        public IList<QuestionOption> QuestionOptions { get; set; }

        public QuestionState QuestionState { get; set; }

        public QuestionState ViewQuestionState { get; set; }
    }

    public enum QuestionState
    {
        /// <summary>
        /// 当前
        /// </summary>
        Current,
        /// <summary>
        /// 未做
        /// </summary>
        WithoutMaking,
        /// <summary>
        /// 已做
        /// </summary>
        HasBeenDone,
        /// <summary>
        /// 待查
        /// </summary>
        Unknown,
    }
}
